package com.farm.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.farm.pojo.Video;
import com.farm.mapper.VideoMapper;
import com.farm.service.VideoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.farm.common.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author farm
 * @since 2023-10-30
 */
@Service
public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements VideoService {

    @Autowired
    private VideoService videoService;
    @Override
    public ResponseResult getUserList() {
        return ResponseResult.okResult(videoService.list(Wrappers.<Video>lambdaQuery().eq(Video::getState,1)));
    }
}
